package com.act.util;

import com.google.gson.Gson;

public class JsonUtil {

    /**
     * Json -> Object
     * @param jsonObject
     * @param clazz
     * @param <T>
     * @return
     */
    public static <T> T fromObject(String jsonObject, Class<T> clazz) {
        return new Gson().fromJson(jsonObject, clazz);
    }

    private JsonUtil() {

    }
}
